package com.per.mybootall.vo;

import com.google.gson.Gson;

import java.util.List;

public class Message {
    private String msg;
    private List<String> list;

    public Message() {
    }

    @Override
    public String toString() {
        return "Message{" +
                "msg='" + msg + '\'' +
                ", list=" + list +
                '}';
    }

    public Message(String msg, List<String> list) {
        this.msg = msg;
        this.list = list;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }
    public String toJSON(){
        return gson.toJson(this);
    }

    private static Gson gson=new Gson();
}
